package com.t174.car.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

public class Purchase {

  private int id;
  private String name;
  private BigDecimal price;
  private int count;
  @JsonFormat(pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern="yyyy-MM-dd")
  private Date date;
  private int supplier;
  private int staff;
  private String note;
  private UserInfo userInfo = new UserInfo();
  private Supplier supplier2 = new Supplier();

  public Supplier getSupplier2() {
    return supplier2;
  }

  public UserInfo getUserInfo() {
    return userInfo;
  }

  public void setSupplier2(Supplier supplier2) {
    this.supplier2 = supplier2;
  }

  public void setUserInfo(UserInfo userInfo) {
    this.userInfo = userInfo;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }


  public BigDecimal getPrice() {
    return price;
  }

  public void setPrice(BigDecimal price) {
    this.price = price;
  }


  public int getCount() {
    return count;
  }

  public void setCount(int count) {
    this.count = count;
  }


  public Date getDate() {
    return date;
  }

  public void setDate(Date date) {
    this.date = date;
  }


  public int getSupplier() {
    return supplier;
  }

  public void setSupplier(int supplier) {
    this.supplier = supplier;
  }


  public int getStaff() {
    return staff;
  }

  public void setStaff(int staff) {
    this.staff = staff;
  }


  public String getNote() {
    return note;
  }

  public void setNote(String note) {
    this.note = note;
  }
}
